<include file="Public/head" />
<link type="text/css" rel="stylesheet" href="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.css" />
<style type="text/css">
    .join_search{display: block;margin-top: 10px;width:100%;height:25px;}
    #comefrom {
        -moz-appearance: none;
        background: rgba(0, 0, 0, 0) url("http://img1.isou365.cn/paimai/yunying/images/sanjiao.jpg") no-repeat scroll 130px 5px;
        border: 1px solid #d7d7d7;color: #666;float: left; height: 25px;line-height: 25px;margin-left: 10px;text-align: center;width: 150px;}
</style>
</head>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar"  menu="zhgl.csjm" />
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li onclick="window.location.href = '/Join/index'" >待处理</li>
                <li onclick="window.location.href = '/Join/track'" class="yuCurrent">跟踪中</li>
                <li onclick="window.location.href = '/Join/success'">处理成功</li>
                <li onclick="window.location.href = '/Join/fail'">处理失败</li>
            </ul>
        </div>
        <div class="yuSuo clearfix">
            <form id="searchFrom">
                <input id="status" name="status" type="hidden" value="2"/>
                <input type="text" id="id" name="id" placeholder="请输入登记ID" value="" class="suoDian" />
                <input type="text" id="phone" name="phone" placeholder="请输入手机号" value="" class="suoDian" />
                <select name="comefrom"  id="comefrom">
                    <option value="">全部渠道</option>
                    <option value="1">桌面官网</option>
                    <option value="2">移动官网</option>
                    <option value="3">移动客户端</option>
                    <option value="4">其它</option>
                </select>
                <input type="text" id="emp" name="emp" placeholder="请输入操作人" value="" class="suoDian" style="margin-right:10px;"/>
                <input type="text" id="start_time" name="start_time" value="" readonly placeholder="开始时间" /><em></em>
                <input type="text" id="end_time" name="end_time" value="" readonly placeholder="结束时间" style="margin-right: 10px;"/> 
            </form>
            <input type="button" onclick="search();" id="search" value="搜索" class="suoSou">
        </div>
        <div class="yuList">
            <div class="listBox" id="listBox"></div>
        </div>
    </div>
    <script type="text/javascript">
        $("#start_time").ymdateplugin({
            changeMonth: true,
            changeYear: true
        });
        $("#end_time").ymdateplugin({
            changeMonth: true,
            changeYear: true
        });
        get_list(2);
        function get_list(status) {
            var url = mkUrl();
            $.get("/Join/join_list?status="+status, url, function (data) {
                $("#listBox").html(data);
            }, "html");
        }
        function get_page(p) {
            var url = mkUrl();
            url += "&p=" + p;
            $.get("/Join/join_list?status=2", encodeURI(url), function (data) {
                $("#listBox").html(data);
            }, "html");
        }
        function search() {
            var url = mkUrl();
            $.get("/Join/join_list?status=2", encodeURI(url), function (data) {
                $("#listBox").html(data);
            }, "html");
        }
        function mkUrl() {
            var url = "";
            var id = $("#id").val();
            var phone = $("#phone").val();
            var comefrom = $("#comefrom").val();
            var emp = $("#emp").val();
            var start_time = $("#start_time").val();
            var end_time = $("#end_time").val();
            if (id) {
                url += '&id=' + id;
            }
            if (phone) {
                url += '&phone=' + phone;
            }
            if (comefrom) {
                url += '&comfrom=' + comefrom;
            }
            if (emp) {
                url += '&emp=' + emp;
            }
            if (start_time) {
                url += '&start_time=' + start_time;
            }
            if (end_time) {
                url += '&end_time=' + end_time;
            }
            return url;
        }
    </script>
    <include file="Public/foot" />